package com.meng.demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @Author: menglinggang
 * @Date: 2020-06-23
 * @Time: 下午5:22
 */
public class ComponentDemo {

    public static void main(String[] args) {
        ComponentContainer winForm = new ComponentContainer("winForm（windows窗口）");

        winForm.addComponent(new Component("Picture(LOGO图片)"));
        winForm.addComponent(new Component("Button(登录)"));
        winForm.addComponent(new Component("Button(注册)"));

        ComponentContainer frame = new ComponentContainer("Frame");
        frame.addComponent(new Component("Lable(用户名)"));
        frame.addComponent(new Component("TextBox(文本框)"));
        frame.addComponent(new Component("Lable(密码)"));
        frame.addComponent(new Component("PasswordBox(密码框)"));
        frame.addComponent(new Component("CheckBox(复选框)"));
        frame.addComponent(new Component("TextBox(记住用户名)"));
        frame.addComponent(new Component("LinkLable(忘记密码)"));
        winForm.addComponent(frame);

        winForm.doPrint();
    }
}
